﻿using System;
using System.Collections.Generic;

using System.Text;
using HZ.DrugTrade.IBLL;
using HZ.DrugTrade.Model;
using HZ.DrugTrade.DAL;
using System.Data;
using HZ.Common;
using System.Collections;

namespace HZ.DrugTrade.BLL
{
    /// <summary>
    /// 提供对基础数据的维护
    /// 质量层次，剂型，产品，产品分类 等
    /// </summary>
    public class BLL_Common : MarshalByRefObject
    {

        #region 质量层次

        /// <summary>
        /// 分页获取质量层次
        /// </summary>
        /// <param name="currentPage"></param>
        /// <param name="pageSize"></param>
        /// <param name="totalRecord"></param>
        /// <returns></returns>
        public DataTable GetAllQualityLevel(int currentPage, int pageSize, out int totalRecord)
        {
            StringBuilder sql = new StringBuilder();
            sql.Append(string.Format("select * from TB_QualityLevel  "));
            HZ.Data.PageDescribe des = new HZ.Data.PageDescribe(sql.ToString(), pageSize);
            des.CurrentPage = currentPage;
            totalRecord = des.TotalCount;
            return des.GetSpecailPage();
        }

        #endregion




    }

}